// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'lib-flexible'
import * as api from './api';
import currency from './utils/index'
import VueLazyload from 'vue-lazyload'
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
Vue.config.productionTip = false

Vue.prototype.$api= api
Vue.prototype.$currency = currency
// Vue.use(VueLazyload)
 
// // or with options
// Vue.use(VueLazyload, {
//   preLoad: 1.3,
//   error: 'dist/error.png',
//   loading: 'dist/loading.gif',
//   attempt: 1
// })
/* eslint-disable no-new */
import Vant from 'vant';
import 'vant/lib/index.css';

import VueAwesomeSwiper from 'vue-awesome-swiper'
Vue.use(VueAwesomeSwiper, /* { default global options } */)
// require styles
import 'swiper/dist/css/swiper.css'


import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'ozT7g2K7TQBlwdTOCKukAqTWOrXG9TCd'
})

import VueJsonp from 'vue-jsonp';

Vue.use(VueJsonp);
Vue.prototype.$bus=new Vue()
Vue.use(Vant);
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
